var tempObj = null;
function changeColor(obj1)
{
 if(tempObj)
   {
    tempObj.style.background = "red";
    tempObj.style.color  ="#000000";
   }
   obj1.style.background = "#5CB7FE";
   obj1.style.color = "#5CB7FE";
  tempObj = obj1;
}